package com.lemon.beanManager;

import java.util.HashMap;

public class IOC implements BeanFactory{
    private static HashMap<String,Object> beanMap = new HashMap<>(50);
    @Override
    public Object getBean(String id) {
        return beanMap.get(id);
    }
    public void setBean(String id ,Object obj){
        beanMap.put(id, obj);
    }

    @Override
    public void remove(String id) {
        beanMap.remove(id);
    }
}
